package HP.p0822;

public class Student extends Person {
    private int xh;

    public Student() {
        //super("aa",333,"ss");
    }

    public Student(String name, int age, String sex, String hobby, int xh) {
        //super(name, age, sex, hobby);
        this.xh = xh;
        System.out.println("学生的带参构造，加学号");
    }

    public Student(String name, int age, String sex, String hobby) {
        super(name, age, sex, hobby);
        System.out.println("学生的带参构造，不加学号");
    }

    public Student(int xh) {
        this.xh = xh;
    }

    public int getXh() {
        return xh;
    }

    public void setXh(int xh) {
        this.xh = xh;
    }

}
